﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace NetCMS.Web
{
    public partial class test1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //System.Text.RegularExpressions.Match s = NetCMS.Content.Collect.Utility.GetMatchUrl(this.TextBox1.Text, "<a href=\"[列表URL]\">", "[列表URL]");
            NetCMS.Content.Collect.Collect cl = new NetCMS.Content.Collect.Collect();
            //cl.Collecting(3, 2,0, true);
        }

        /*
        /// <summary>
        /// 计算内容占用
        /// </summary>
        private void memery()
        {

            MyEntity entity1 = new MyEntity(1000);
            MyEntity entity2 = new MyEntity(1000);

            System.Runtime.InteropServices.GCHandle gc1 = System.Runtime.InteropServices.GCHandle.Alloc(entity1);
            System.Runtime.InteropServices.GCHandle gc2 = System.Runtime.InteropServices.GCHandle.Alloc(entity2);

            unsafe
            {
                int* i1 = (int*)(((IntPtr)gc1).ToPointer());
                int* i2 = (int*)(((IntPtr)gc2).ToPointer());

                int off1 = *((int*)((new IntPtr(*i1 + 4)).ToPointer()));
                int off2 = *((int*)((new IntPtr(*i2 + 4)).ToPointer()));
                String str = (off2 - off1).ToString();
            }


        }
        */
    }
}
